package com.ktjy.service.Impl;

import com.ktjy.entity.Livecommerce;
import com.ktjy.mapper.Livecommercemapper;
import com.ktjy.service.LivecommerceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("LivecommerceService")
public class LivecommerceServiceImpl implements LivecommerceService {
    private static final Logger LOGGER= LoggerFactory.getLogger(LivecommerceServiceImpl.class);
    @Autowired
    private Livecommercemapper livecommercemapper;
    @Override
    public List<Livecommerce> live() {
        return livecommercemapper.live();
    }

    @Override
    public Livecommerce live2(Long id) {
        return livecommercemapper.live2(id);
    }

    @Override
    public int Add(Livecommerce livecommerce) {
        return livecommercemapper.Add(livecommerce);
    }

    @Override
    public int Update(Livecommerce livecommerce) {
        return livecommercemapper.Update(livecommerce);
    }
}
